package com.wx.gof.principle.Interfacesegregation;

/**
 * @ClassName Bird
 * @Author wx
 * @Description 鸟
 * @Date 2018-12-02-17:24
 */
public class BirdV2 implements IEatAnimalAction,IFlyAnimalAction{
    @Override
    public void eat() {
        System.out.println("小鸟爱吃虫子");
    }

    @Override
    public void fly() {
        System.out.println("小鸟能自由飞翔");
    }

}
